Lexical File Names in Plan 9, or, Getting Dot-Dot Right

نویسنده

  • Rob Pike
چکیده

Symbolic links make the Unix file system non-hierarchical, resulting in multiple valid path names for a given file. This ambiguity is a source of confusion, especially since some shells work overtime to present a con­ sistent view from programs such as pwd, while other programs and the kernel itself do nothing about the problem. Plan 9 has no symbolic links but it does have other mechanisms that pro­ duce the same difficulty. Moreover, Plan 9 is founded on the ability to control a program s environment by manipulating its name space. Ambiguous names muddle the result of operations such as copying a name space across the network. To address these problems, the Plan 9 kernel has been modified to main­ tain an accurate path name for every active file (open file, working direc­ tory, mount table entry) in the system. The definition of accurate is that the path name for a file is guaranteed to be the rooted, absolute name the program used to acquire it. These names are maintained by an effi­ cient method that combines lexical processing such as evaluating .. by just removing the last path name element of a directory with local oper­ ations within the file system to maintain a consistently, easily understood view of the name system. Ambiguous situations are resolved by examin­ ing the lexically maintained names themselves. A new kernel call, fd2path, returns the file name associated with an open file, permitting the use of reliable names to improve system ser­ vices ranging from pwd to debugging. Although this work was done in Plan 9, Unix systems could also benefit from the addition of a method to recover the accurate name of an open file or the current directory. Motivation Consider the following unedited transcript of a session running the Bourne shell on a modern Unix system:

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Dissociated neural correlates of quantity processing of quantifiers, numbers, and numerosities.

Quantities can be represented using either mathematical language (i.e., numbers) or natural language (i.e., quantifiers). Previous studies have shown that numerical processing elicits greater activation in the brain regions around the intraparietal sulcus (IPS) relative to other semantic processes. However, little research has been conducted to investigate whether the IPS is also critical for t...

متن کامل

Design of Arithmetic Circuits in Quantum Dot Cellular Automata Nanotechnology

Reading is a hobby to open the knowledge windows. Besides, it can provide the inspiration and spirit to face this life. By this way, concomitant with the technology development, many companies serve the e-book or book in soft file. The system of this book of course will be much easier. No worry to forget bringing the design of arithmetic circuits in quantum dot cellular automata nanotechnology ...

متن کامل

Fostering Directly Observed Treatment in Tuberculosis: A Program Manager’s Perspective

Global Tuberculosis (TB) report (2013) has revealed that an estimated 8.6 million people developed TB of which, India accounts for almost 26% of the cases. These estimates clearly suggest that the country’s efforts to achieve Millennium Development Goal 6 by 2015 have not delivered the desired output. In India, the TB prevention and control activities are supervised and implemented under the Re...

متن کامل

Optimized Design of Multiplexor by Quantum-dot CellularAutomata

Quantum-dot Cellular Automata (QCA) has low power consumption and high density and regularity. QCA widely supports the new devices designed for nanotechnology. Application of QCA technology as an alternative method for CMOS technology on nano-scale shows a promising future. This paper presents successful designing, layout and analysis of Multiplexer with a new structure in QCA technique. In thi...

متن کامل

LFG-DOT: Combining Constraint-Based and Empirical Methodologies for Robust MT

The Data-Oriented Parsing Model (DOP, [1]; [2]) has been presented as a promising paradigm for NLP. It has also been used as a basis for Machine Translation (MT) — Data-Oriented TVanslation (DOT, [9]). Lexical Functional Grammar (LFG, [5]) has also been used for MT ([6]). LFG has recently been allied to DOP to produce a new LFG-DOP model ([3]) which improves the robustness of LFG. We summarize ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2000